package com.ecoolex.chinadutyfree.retailer.core.mapper;

import com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsOrderAfterSalesRecord;
import com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsOrderAfterSalesRecordExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface DirectMailGoodsOrderAfterSalesRecordMapper {
    long countByExample(DirectMailGoodsOrderAfterSalesRecordExample example);

    int deleteByExample(DirectMailGoodsOrderAfterSalesRecordExample example);

    int deleteByPrimaryKey(Integer recordId);

    int insert(DirectMailGoodsOrderAfterSalesRecord record);

    int insertSelective(@Param("record") DirectMailGoodsOrderAfterSalesRecord record, @Param("selective") DirectMailGoodsOrderAfterSalesRecord.Column ... selective);

    DirectMailGoodsOrderAfterSalesRecord selectOneByExample(DirectMailGoodsOrderAfterSalesRecordExample example);

    List<DirectMailGoodsOrderAfterSalesRecord> selectByExample(DirectMailGoodsOrderAfterSalesRecordExample example);

    DirectMailGoodsOrderAfterSalesRecord selectByPrimaryKey(Integer recordId);

    DirectMailGoodsOrderAfterSalesRecord selectByPrimaryKeyWithLogicalDelete(@Param("recordId") Integer recordId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") DirectMailGoodsOrderAfterSalesRecord record, @Param("example") DirectMailGoodsOrderAfterSalesRecordExample example, @Param("selective") DirectMailGoodsOrderAfterSalesRecord.Column ... selective);

    int updateByExample(@Param("record") DirectMailGoodsOrderAfterSalesRecord record, @Param("example") DirectMailGoodsOrderAfterSalesRecordExample example);

    int updateByPrimaryKeySelective(@Param("record") DirectMailGoodsOrderAfterSalesRecord record, @Param("selective") DirectMailGoodsOrderAfterSalesRecord.Column ... selective);

    int updateByPrimaryKey(DirectMailGoodsOrderAfterSalesRecord record);

    int batchInsert(@Param("list") List<DirectMailGoodsOrderAfterSalesRecord> list);

    int batchInsertSelective(@Param("list") List<DirectMailGoodsOrderAfterSalesRecord> list, @Param("selective") DirectMailGoodsOrderAfterSalesRecord.Column ... selective);

    int logicalDeleteByExample(@Param("example") DirectMailGoodsOrderAfterSalesRecordExample example);

    int logicalDeleteByPrimaryKey(Integer recordId);
}